<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #box {
        width: 200px;
        height: 200px;
        background-color: #b1e45d;
        margin: 20px auto;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <button v-on:click="isShow = !isShow">
        {{isShow?'点击隐藏':'点击显示'}}
      </button>
      <div id="box" v-show="isShow"></div>
    </div>
    <script src="./vue.global.js"></script>
    <script>
      const { createApp } = Vue;
      const app = createApp({
        data() {
          return {
            isShow: true
          }
        },
      });
      app.mount("#app");
    </script>
  </body>
</html>
